package cn.south.campus.business.model.entity;

import cn.south.campus.common.model.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 快递代取
 * </p>
 *
 * @author chow
 * @since 2024-12-13
 */
@EqualsAndHashCode(callSuper = true)
@TableName("campus_express_take")
@Data
public class ExpressTake extends BaseEntity {

    /**
     * 用户id
     */
    private Long userId;

    @TableField(exist = false)
    private String nickname;

    @TableField(exist = false)
    private String avatar;

    /**
     * 业务单号
     */
    private String bizNo;

    /**
     * 收件地址
     */
    private String address;

    /**
     * 需要支付金额
     */
    private BigDecimal price;

    /**
     * 快递数量
     */
    private Integer amount;
    /**
     * 赏金
     */
    private BigDecimal bounty;

    /**
     * 性别限制,0不限制,1男,2女
     */
    private Integer sexLimit;

    /**
     * 期望送达时间,0不限,1上午,2下午,3晚上,4尽快,5其他时间请备注
     */
    private Integer deliveryTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态，0待接单,1已接单,2已取件,3已送达
     */
    private Integer status;

    /**
     * 是否支付
     */
    private Integer payStatus;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;

    @TableField(exist = false)
    private List<ExpressTakeDetail> expressTakeDetails;
}
